package cn.com.dhcc.turbo.entity.exch;

import cn.com.dhcc.turbo.entity.registry.NodeInfo;
import cn.com.dhcc.turbo.entity.registry.NodePipeline;

/**
 * 交换关系对应的通道信息
 * 
 * @日期 2015-6-26 下午2:47:40
 * @作者  高强
 */
public class ExchRelPipeline {
	
	private NodeInfo fromNode;//交换关系A点
	private NodeInfo toNode;//交换关系B点
	private NodePipeline fromPipeline;//交换关系A点的通道
	private NodePipeline toPipeline;//交换关系B点的通道
	private NodeInfo need;//需要返回的节点的通道
	
	public NodeInfo getNeed() {
		return need;
	}
	public void setNeed(NodeInfo need) {
		this.need = need;
	}
	public NodeInfo getFromNode() {
		return fromNode;
	}
	public void setFromNode(NodeInfo fromNode) {
		this.fromNode = fromNode;
	}
	public NodeInfo getToNode() {
		return toNode;
	}
	public void setToNode(NodeInfo toNode) {
		this.toNode = toNode;
	}
	public NodePipeline getFromPipeline() {
		return fromPipeline;
	}
	public void setFromPipeline(NodePipeline fromPipeline) {
		this.fromPipeline = fromPipeline;
	}
	public NodePipeline getToPipeline() {
		return toPipeline;
	}
	public void setToPipeline(NodePipeline toPipeline) {
		this.toPipeline = toPipeline;
	}
	@Override
	public String toString() {
		return "ExchRelPipeline [fromNode=" + fromNode + ", toNode=" + toNode
				+ ", fromPipeline=" + fromPipeline + ", toPipeline="
				+ toPipeline + "]";
	}
	public ExchRelPipeline(NodeInfo fromNode, NodeInfo toNode,NodeInfo need) {
		super();
		this.fromNode = fromNode;
		this.toNode = toNode;
		this.need = need;
	}
	public ExchRelPipeline() {
		super();
		// TODO Auto-generated constructor stub
	}
	
	

}
